<?php
header('Content-Type: application/json');
@$uname= $_REQUEST['uname'] or die('{"code":-3,"msg":"账号不能为空"}');
@$upwd= $_REQUEST['upwd'] or die('{"code":-2,"msg":"登录密码不能为空"}');

if($uname == 'moen58569123' && $upwd == "moen58569123"){
    echo '{"code":1,"msg":"登陆成功！"}';
}else{
    echo '{"code":-1,"msg":"账号或密码错误！"}';
}